home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / DynClipEffectsMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  5.0 KB  |  169 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. // Alias|Wavefront Script File
  19. // MODIFY THIS AT YOUR OWN RISK
  20. //
  21. // Creation Date:  13 April 1997
  22. // Author:         gf
  23. //
  24. //
  25. //  Procedure Name:
  26. //      DynClipEffectsMenu
  27. //
  28. //  Description:
  29. //        Create the DYNAMICS->ClipEffects
  30. //
  31. //  Input Arguments:
  32. //      parent to parent the menu to.
  33. //
  34. //  Return Value:
  35. //      None.
  36. //
  37.  
  38.  
  39. global proc DynClipEffectsMenu( string $parent )
  40. {
  41.     setParent -m $parent;
  42.     if( `menu -q -ni $parent` != 0 ) {
  43.         //
  44.         //    Menu is built already - just return
  45.         //
  46.         return;
  47.     }
  48.  
  49.     menuItem -l "Create Fire" 
  50.         -annotation "Create Fire: Create fire effect"
  51.         -c "Fire"
  52.         -dmc "performDynamicsClipEffects Fire 2"
  53.          -i "fire.xpm"
  54.         fireEffectItem;
  55.         menuItem -optionBox true 
  56.             -i "fire.xpm"
  57.             -annotation "Create Fire Option Box"
  58.             -l "Create Fire Effect Option Box"
  59.             -c "FireOptions"
  60.             createFireDialogItem;
  61.  
  62.     menuItem -l "Create Smoke" 
  63.         -annotation "Create Smoke: Create smoke effect"
  64.         -c "Smoke"
  65.         -dmc "performDynamicsClipEffects Smoke 2"
  66.         -i "smoke.xpm"
  67.         smokeEffectItem;
  68.         menuItem -optionBox true 
  69.             -i "smoke.xpm"
  70.             -annotation "Create Smoke Option Box"
  71.             -l "Create Smoke Effect Option Box"
  72.             -c "SmokeOptions"
  73.             createSmokeDialogItem;
  74.  
  75.     menuItem -l "Create Fireworks" 
  76.         -annotation "Create Fireworks: Create fireworks effect"
  77.         -c "Fireworks"
  78.         -dmc "performDynamicsClipEffects Fireworks 2"
  79.         -i "fireworks.xpm"
  80.         fireworksEffectItem;
  81.         menuItem -optionBox true //  -i "posEmitter.xpm"
  82.             -i "fireworks.xpm"
  83.             -annotation "Create Fireworks Option Box"
  84.             -l "Create Fireworks Effect Option Box"
  85.             -c "FireworksOptions"
  86.             createFireworksDialogItem;
  87.  
  88.     menuItem -l "Create Lightning" 
  89.         -annotation "Create Lightning: Create lightning effect"
  90.         -c "Lightning"
  91.         -dmc "performDynamicsClipEffects Lightning 2"
  92.         -i "lightning.xpm"
  93.         lightningEffectItem;
  94.         menuItem -optionBox true 
  95.             -i "lightning.xpm"
  96.             -annotation "Create Lightning Option Box"
  97.             -l "Create Lightning Effect Option Box"
  98.             -c "LightningOptions"
  99.             createLightningDialogItem;
  100.  
  101.     menuItem -l "Create Shatter" 
  102.         -annotation "Create Shatter: Create shatter effects"
  103.         -c "Shatter"
  104.         -dmc "performDynamicsClipEffects Shatter 2"
  105.         -i "shatter.xpm"
  106.         shatterEffectItem;
  107.         menuItem -optionBox true 
  108.             -i "shatter.xpm"
  109.             -annotation "Create Shatter Option Box"
  110.             -l "Shatter Effect Option Box"
  111.             -c "ShatterOptions"
  112.             createShatterDialogItem;
  113.  
  114.     menuItem -l "Create Curve Flow" 
  115.         -annotation "Create Flow: Create flow along curves"
  116.         -c "CurveFlow"
  117.         -dmc "performDynamicsClipEffects Flow 2"
  118.         -i "flow.xpm"
  119.         curveFlowEffectItem;
  120.         menuItem -optionBox true 
  121.             -i "flow.xpm"
  122.             -annotation "Create Flow Option Box"
  123.             -l "Create Flow Along Curves Effect Option Box"
  124.             -c "CurveFlowOptions"
  125.             createFlowDialogItem;
  126.  
  127.     menuItem -l "Create Surface Flow" 
  128.         -annotation "Create Surface Flow: Create flow along surfaces"
  129.         -c "SurfaceFlow"
  130.         -dmc "performDynamicsClipEffects SurfaceFlow 2"
  131.         -i "flowSurface.xpm"
  132.         surfaceFlowEffectItem;
  133.         menuItem -optionBox true
  134.             -i "flowSurface.xpm"
  135.             -annotation "Create Surface Flow Option Box"
  136.             -l "Create Flow Along Surfaces Effect Option Box"
  137.             -c "SurfaceFlowOptions"
  138.             createSurfaceFlowDialogItem;
  139.  
  140.  
  141. //    menuItem -l "Create Melt" 
  142. //        -annotation "Melt Effect"
  143. //        -c "performDynamicsClipEffects Melt 0"
  144. //        -dmc "performDynamicsClipEffects Melt 2"
  145. //        // -i "connectField.xpm"
  146. //        meltEffectItem;
  147. //        menuItem -optionBox true // -i "posEmitter.xpm"
  148. //            -annotation "Create Melt Effect Option Box"
  149. //            -l "Create Melt Effect Option Box"
  150. //            -c "performDynamicsClipEffects  Melt 1"
  151. //            createMeltDialogItem;
  152.  
  153.     menuItem -d true;
  154.  
  155.     menuItem -l "Delete Surface Flow" 
  156.         -annotation "Delete Surface Flow: Delete flow along surfaces"
  157.         -c "DeleteSurfaceFlow"
  158.         -dmc "performDynamicsClipEffects DeleteSurfaceFlow 2"
  159.         -i "flowSurfaceDelete.xpm"
  160.         deleteSurfaceFlowEffectItem;
  161.         menuItem -optionBox true
  162.             -i "flowSurfaceDelete.xpm"
  163.             -annotation "Delete Surface Flow Option Box"
  164.             -l "Delete Flow Along Surfaces Effect Option Box"
  165.             -c "DeleteSurfaceFlowOptions"
  166.             deleteSurfaceFlowDialogItem;
  167.  
  168. }
  169.